// @ts-nocheck
import React from 'react';
import { ApplyPluginsType, dynamic } from '/Users/zhangteng11/myCode/ying-umi/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": dynamic({ loader: () => import(/* webpackChunkName: 'layout__index' */'@/layout/index')}),
    "wrappers": [dynamic({ loader: () => import(/* webpackChunkName: 'wrappers' */'@/layout/auth')})],
    "routes": [
      {
        "path": "/product",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__product__index' */'@/pages/product/index')}),
        "title": "我是商品列表",
        "exact": true
      },
      {
        "path": "/account",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__account__index' */'@/pages/account/index')}),
        "title": "我是商品列表",
        "exact": true
      }
    ]
  },
  {
    "path": "/login",
    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__login__index' */'@/pages/login/index')}),
    "exact": true
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
